import QtQuick
import "../../communication"
import "../common"

Item{
    UIButton{
        text: "扔向对方"
        defaultTextColor: "white"
        pressedTextColor: "grey"
        width: parent.width / 4
        height: parent.height / 6
        font{
            bold:true
            pixelSize: height / 3
        }

        anchors{
            top:parent.top
            horizontalCenter: parent.horizontalCenter
        }

        onClicked: {
            EventBus.currentGame.startAni()
        }

    }

    UIButton{
        text: "扔向自己"
        defaultTextColor: "white"
        pressedTextColor: "grey"
        width: parent.width / 4
        height: parent.height / 6
        font{
            bold:true
            pixelSize: height / 3
        }

        anchors{
            bottom:parent.bottom
            horizontalCenter: parent.horizontalCenter
        }

        onClicked: {
            EventBus.currentGame.stopAni()
        }

    }

}
